﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="ConfigPackage.aspx.vb" Inherits="RWN.ConfigPackage" UICulture="th-TH" Culture="th-TH" %>

<%@ Register Assembly="NumericTextBox" Namespace="NumericTextBoxControl" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="ucPopupOfficer.ascx" TagName="ucPopupOfficer" TagPrefix="uc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Assembly="Sarayut.ControlLibrary" Namespace="Sarayut.ControlLibrary"
	TagPrefix="cc2" %>
<%@ Register src="ucCalendar.ascx" tagname="ucCalendar" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript">

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server" 
		EnableScriptGlobalization="True">
	</asp:ScriptManager>
	<div>
		ตั้งค่า Package</div>
	<div>
		<hr />
	</div>
	<div>
		<table>
			<tr>
				<td>
					Package Code:&nbsp;&nbsp;
				</td>
				<td>
					<asp:TextBox ID="txtPackageCode" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
				</td>
				<td>
					&nbsp;
					Package RV Value:&nbsp;&nbsp;
				</td>
				<td>
					<cc1:numerictextbox ID="txtPackageRVValue" runat="server" AllowZero="False" 
						ControlMode="Text" DecimalSeparator="None" MaxLength="15" 
						ThousandsSeparator="None" Width="200px" />
				</td>
				<td>
					&nbsp;&nbsp;&nbsp;
				</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td>
					Package Amount:&nbsp;&nbsp;</td>
				<td>
					<cc1:NumericTextBox ID="txtPackageAmount" runat="server" AllowZero="False" ControlMode="Text"
						DecimalSeparator="None" MaxLength="10" ThousandsSeparator="None" Width="200px" />
				</td>
				<td>
					Package Description:</td>
				<td>
					<asp:TextBox ID="txtPackageDesc" runat="server" Width="350px"></asp:TextBox>
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td>
					Package Stauts:
				</td>
				<td>
					<asp:DropDownList ID="ddlPackageStatus" runat="server" Height="22px" 
                        Width="206px">
                        <asp:ListItem Value="-">-- ทั้งหมด --</asp:ListItem>
                        <asp:ListItem Value="A">ACTIVE</asp:ListItem>
                        <asp:ListItem Value="I">INACTIVE</asp:ListItem>
					</asp:DropDownList>
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
			<tr>
				<td colspan="4">
					<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" 
						ValidationGroup="valid" Width="80px" />
					&nbsp;<asp:Button ID="btnReset" runat="server" Text="ตั้งค่าใหม่" 
                        Width="80px" />
					&nbsp;<asp:Button ID="btnAdd" runat="server" Text="เพิ่ม" Width="80px" />
				</td>
				<td>
					&nbsp;</td>
				<td>
					&nbsp;</td>
			</tr>
		</table>
	</div>
	<div>
	    <asp:GridView ID="gvList" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" PageSize="20" Width="100%" DataKeyNames="PACKAGE_ID">
				<AlternatingRowStyle BackColor="White" />
			<Columns>
			    <asp:CommandField SelectText="แก้ไข" ShowSelectButton="True" HeaderText="แก้ไข">
                    <HeaderStyle Width="10%" />
				    <ItemStyle HorizontalAlign="Center" />
			    </asp:CommandField>
				<asp:BoundField DataField="PACKAGE_ID" HeaderText="Package Code" >
				    <HeaderStyle Width="17%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
				<asp:BoundField DataField="PACKAGE_RV" HeaderText="Package RV Value" >
			        <HeaderStyle Width="17%" />
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="PACKAGE_AMOUNT" HeaderText="Package Amount" DataFormatString="{0:#,###}" >
			        <HeaderStyle Width="17%" />
                    <ItemStyle HorizontalAlign="Right" />
                </asp:BoundField>
                <asp:BoundField DataField="PACKAGE_DESC" HeaderText="Package Description" >
			        <HeaderStyle Width="20%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="RECORD_STATUS_DESC" HeaderText="Package Status" >
			        <HeaderStyle Width="18%" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
			</Columns>
		    <HeaderStyle BackColor="White" Height="30px" />
		    <PagerStyle BackColor="White" />
		    <RowStyle Height="20px" />
		</asp:GridView>
	</div>
	</asp:Content>
